﻿using System;

namespace FBGraph
{
    /// <summary>Allows specific fields to be selected for a model.</summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class SelectAttribute : Attribute
    {
        /// <summary>Initializes an instance of <see cref="SelectAttribute" /> with the specified <paramref name="fields" />.</summary>
        /// <param name="fields">An array of fields that will be selected by default for the decorated type.</param>
        public SelectAttribute(params String[] fields)
        {
            this.Fields = fields;
        }

        /// <summary>Gets the array of fields that will be selected by default for the decorated type.</summary>
        public String[] Fields { get; private set; }
    }
}